package jm.nj.demo23main.c_dbUtils;

import com.sun.org.apache.xml.internal.resolver.helpers.PublicId;
import jm.nj.demo23main.utils.JdbcUtils;
import org.apache.commons.dbutils.QueryRunner;
import org.junit.Test;

import java.sql.SQLException;

public class demo01 {
    @Test
    public void insert() throws SQLException {
        QueryRunner runner = new QueryRunner(JdbcUtils.getDataSource());
        int update = runner.update("insert into user(username,password)value(?,?)","12","12");
        System.out.println(update);
    }
}
